//
//  OMOrderMoreView.m
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/5/15.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMOrderMoreView.h"
@interface OMOrderMoreView()
@property (nonatomic, strong)UILabel *elementLabel;
@property (nonatomic, strong)UIImageView *imageView;
@end

@implementation OMOrderMoreView

- (instancetype)init
{
    self = [super init];
    [self configure];
    return self;
}

- (void)configure
{
    self.clipsToBounds = true;

    _elementLabel = [UILabel new];
    _elementLabel.font = SM_CFont(28);
    _elementLabel.textColor = SM_blackColor;
    _elementLabel.text = @"查看全部商品";
    [self addSubview:_elementLabel];
    [_elementLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.mas_centerX);
        make.centerY.equalTo(self.mas_centerY);
    }];

    _imageView = [[UIImageView alloc]init];
    _imageView.image = [[UIImage imageNamed:@"order_list_arrow_15x15_"] imageWithColor:SM_blackColor];
    [self addSubview:_imageView];
    [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.elementLabel.mas_right).offset(SM_SIZE(10));
        make.centerY.equalTo(self.mas_centerY);
    }];

    UIView *line = [UIView new];
    [self addSubview:line];
    line.backgroundColor = SM_naviShadowColor;
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(@0);
        make.height.equalTo(@0.5f);
    }];
}

@end
